﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manager/Manager.Master" AutoEventWireup="true"
    CodeBehind="ManBusiness.aspx.cs" Inherits="BatDongSan.Manager.ManBusiness" Theme="cvkadmin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
    <div>
        <div style="float: left">
        </div>
        <div style="padding: 0px 10px 0px 0px;" align="right">
            <asp:Label ID="lbStatus" runat="server" Font-Italic="True" ForeColor="#FF3300"></asp:Label>
            <asp:LinkButton ID="LinkButton1" CssClass="linkbutton" Font-Size="Larger" PostBackUrl="~/Manager/ManBusinessUpdate.aspx"
                runat="server">Thêm mới (Doanh Nghiệp)</asp:LinkButton>
        </div>
    </div>
    <br />
    <div style="float: none">
        <asp:GridView ID="grvBusiness" runat="server" AutoGenerateColumns="False" CssClass="TMain"
            BorderStyle="Solid" BorderWidth="1px" CellPadding="4" GridLines="Vertical" Width="100%"
            OnRowDataBound="grvBusiness_RowDataBound">
            <RowStyle CssClass="TItem" />
            <Columns>
                <asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                        <asp:Label ID="lblSTT" runat="server" Text='<%# Container.DataItemIndex+1 %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="10px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="BusinessId" InsertVisible="False" Visible="false">
                    <ItemTemplate>
                        <asp:Label ID="lblBusinessId" runat="server" Text='<%# Eval("BusinessId") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tên">
                    <ItemTemplate>
                        <asp:HyperLink ID="hplName" runat="server">
                        </asp:HyperLink>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle Width="350px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Address">
                    <ItemTemplate>
                        <%# Eval("Address")%>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="#Ẩn" Visible="true">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtActive" Font-Bold="true" Font-Underline="false" runat="server"
                            CausesValidation="False" OnClick="lnkbtActive_Click"></asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="30px" />
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False" HeaderText="#Field">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtFiled" runat="server" CausesValidation="False" Text="Gán loại"></asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="60px" />
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False" HeaderText="Xóa">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtDelete" runat="server" CausesValidation="False" Text="Xóa"
                            OnClick="lnkbtDelete_Click"></asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="30px" />
                </asp:TemplateField>
            </Columns>
            <FooterStyle CssClass="TFooter" />
            <PagerStyle CssClass="TFooter" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <HeaderStyle CssClass="THeader" />
            <AlternatingRowStyle CssClass="TItemA" />
        </asp:GridView>
    </div>
</asp:Content>
